package org.dousb.doujcodesandbox.security;


import java.io.FileDescriptor;

/**
 * MySecurityManager
 *
 * @author 豆沙包
 * @version 1.0
 * @since 2025-11-02  21:09
 */
public class MySecurityManager extends SecurityManager {


    /**
     * 程序是否可执行
     * @param cmd   the specified system command.
     */
    @Override
    public void checkExec(String cmd) {
        super.checkExec(cmd);
    }

    /**
     * 文件是否可读
     * @param fd   the system-dependent file descriptor.
     */
    @Override
    public void checkRead(FileDescriptor fd) {
        super.checkRead(fd);
    }

    /**
     * 文件是否可写
     * @param fd   the system-dependent file descriptor.
     */
    @Override
    public void checkWrite(FileDescriptor fd) {
        super.checkWrite(fd);
    }

    /**
     * 文件是否可删除
     * @param file   the system-dependent filename.
     */
    @Override
    public void checkDelete(String file) {
        super.checkDelete(file);
    }

    /**
     * 网络是否可连接
     * @param host   the host name port to connect to.
     * @param port   the protocol port to connect to.
     */
    @Override
    public void checkConnect(String host, int port) {
        super.checkConnect(host, port);
    }
}